import Koa from 'koa';
import path from 'path';
import koaBody from 'koa-body';
import assets from 'koa-static';
import router from '../routers';
function initProject(app: Koa): void {
  app.use(koaBody());
  app.use(router.routes());
  app.use(assets(path.resolve(__dirname, '../static')));
}
export { initProject };
